package com.itheima.health.service.impl;

import com.itheima.health.dao.MobileSetmealDao;
import com.itheima.health.pojo.Setmeal;
import com.itheima.health.service.MobileSetmealService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@Slf4j
public class MobileSetmealServiceImpl implements MobileSetmealService {
    @Autowired
    MobileSetmealDao mobileSetmealDao;
    @Override
    public List<Setmeal> getSetmeal() {
        return mobileSetmealDao.selectSetmeal();
    }

    @Override
    public Setmeal findById(Integer id) {
        return mobileSetmealDao.selectById(id);
    }
}
